package br.fot.granola.oboe.graphics.camera;

import br.fot.granola.oboe.controllers.activities.Oboe3DActivity;
import br.fot.granola.oboe.graphics.Node;
import br.fot.granola.oboe.util.Color;
import br.fot.granola.oboe.util.OGLVersion;
import br.fot.granola.oboe.util.OboeRenderer;


public class Camera extends Node 
{
	
	public Color clearColor = new Color(1,1,1,1);
	public float fov = 45.0f;
	
	public Camera()
	{
		super( (Oboe3DActivity.oglVersion==OGLVersion.OGL_20)?new CameraGL10Backend():new CameraGL10Backend() );
	}
	
	public void attachToRenderer( String name )
	{
		OboeRenderer.getRenderer(name).setCamera(this);
	}
}
